<?php
class MatchModel extends Model{
	public $teamid;//团队ID
	
	public function __construct($teamid){
			parent::__construct();
			$this->teamid = $teamid;
			$this->getteamid();
	}
	private function getteamid(){
		$res = M()->query('SELECT Id FROM team WHERE Id = '.$this->teamid);
		if(!$res){
			$this->teamid =false;
		}
	}
}